﻿



using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;


using Demo.ServiceContracts;
using Demo.Services.Test.UserService;


namespace Demo.Services.Test
{
    [TestClass]
    public class UnitTest1
    {
        UserServiceClient client = null;

        [TestInitialize]
        public void Init()
        {
            client = new UserServiceClient();
        }

        [TestMethod]
        public void GetUserDTOWithName(string userName)
        {
            var user = client.GetUserDTOWithName(userName);

            var user1 = client.GetUserDTOWithName(userName);


        }

        [TestMethod]
        public void ExistsWithUserName(string userName)
        {
            var isT = client.ExistsWithUserName("luoliang");

        }

        public void ExistsWithUserNameAsync(string userName)
        {
            throw new NotImplementedException();
        }

        public void Exists(string userName, string password)
        {
            throw new NotImplementedException();
        }

        public void ExistsAsync(string userName, string password)
        {
            throw new NotImplementedException();
        }

        public void CreateUser(string userName, string password, int roleID)
        {
            throw new NotImplementedException();
        }

        public void CreateUserAsync(string userName, string password, int roleID)
        {
            throw new NotImplementedException();
        }

        public void ChangePassword(string userName, string password, string newPassword)
        {
            throw new NotImplementedException();
        }

        public void ChangePasswordAsync(string userName, string password, string newPassword)
        {
            throw new NotImplementedException();
        }

        public bool ChangeRole(string userName, int roleID)
        {
            throw new NotImplementedException();
        }

        public void ChangeRoleAsync(string userName, int roleID)
        {
            throw new NotImplementedException();
        }
    }
}
